<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改专家信息库')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ExpertInfo-edit" th:object="${expertInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">专家姓名：</label>
                    <div class="col-sm-8">
                        <input name="expertName" th:field="*{expertName}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">学历：</label>
                    <div class="col-sm-8">
                        <select name="education" th:field="*{education}" class="form-control" required>
                        <option value="">请选择学历</option> <!-- 默认提示选项 -->
                        <option value="高中及以下">高中及以下</option>
                        <option value="大专">大专</option>
                        <option value="本科">本科</option>
                        <option value="硕士">硕士</option>
                        <option value="博士">博士</option>
                        <option value="其他">其他</option>
            </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">职称：</label>
                    <div class="col-sm-8">
                        <select name="title" th:field="*{title}" class="form-control" required>
                            <option value="">请选择职称</option> <!-- 默认提示选项 -->
                            <option value="初级职称">初级职称</option>
                            <option value="中级职称">中级职称</option>
                            <option value="副高级职称">副高级职称</option>
                            <option value="正高级职称">正高级职称</option>
                            <option value="无职称">无职称</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">工作单位：</label>
                    <div class="col-sm-8">
                        <input name="workUnit" th:field="*{workUnit}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">联系电话：</label>
                    <div class="col-sm-8">
                        <input name="phone" th:field="*{phone}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "business/ExpertInfo";
        $("#form-ExpertInfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-ExpertInfo-edit').serialize());
            }
        }
    </script>
</body>
</html>